<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style></style>
</head>
<body>
    <script>
        //引入rest参数，用于获取函数的实参，用来代替arguments
        // function data(){
        //     console.log(arguments)
        // }
        // data('虚无','轮回','永恒')

        //rest参数
        function data(...args){
            console.log(args)
        }
        data('虚无','轮回','永恒')

        //rest参数必须放到参数最后
    </script>
</body>
</html>